function wait() {
  return new Promise((resolve)=>{
    setTimeout(()=>{
      resolve()
    }, 1000)
  })
}


function mock(time,i) {
  return new Promise((resolve)=>{
    setTimeout(()=>{
      // console.log('mock'+i)
      resolve()
    }, time)
  })
}


module.exports = {
  wait,
  mock
}